package com.dbs.interfaces.group.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dbs.interfaces.group.dao.TestDao;
import com.dbs.interfaces.group.entity.User;
import com.dbs.interfaces.group.seconddao.TestSecondDao;
import com.dbs.interfaces.group.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private TestDao testDao;
	@Autowired
	private TestSecondDao testSecondDao;

	
	@Override
	public List<User> list() {
		/*User user = new User();
		user.setName("nnnnnnnn");
		User user2 = new User();
		user2.setName("cc");
		testDao.save(user2);
		testSecondDao.save(user2);
		testDao.save(user);	*/
		return testDao.findAll();
	}

}
